<%! java.util.Date date = new java.util.Date(); %>

<% 
	System.out.println("now time is: "+date.toLocaleString());
%>

<%="now time is: "+date.toLocaleString() %>